package com.winit.cloudlink.message.messageevent;

public class BytesMaker {
	public static byte[] make128() {
		return makeBytes(128);
	}

	public static byte[] make256() {
		return makeBytes(256);
	}

	public static byte[] make512() {
		return makeBytes(512);
	}

	public static byte[] make1k() {
		return makeBytes(1024);
	}

	public static byte[] make10k() {
		return makeBytes(1024 * 10);
	}

	public static byte[] make100k() {
		return makeBytes(1024 * 100);
	}

	public static byte[] make1m() {
		return makeBytes(1024 * 1024);
	}

	public static byte[] make2m() {
		return makeBytes(1024 * 1024 * 2);
	}

	public static byte[] make3m() {
		return makeBytes(1024 * 1024 * 3);
	}


	public static byte[] makeBytes(int size) {
		byte[] bytes = new byte[size];
		for (int i = 0; i < size; i++) {
			bytes[i] = new Byte("65");
		}
		return bytes;
	}

	public static void main(String[] args) {
		String str = "A";
		System.out.println(str.getBytes().length);
	}

}
